debug = False
daemon = True
bind = '0.0.0.0:9002'  # 绑定ip和端口号
backlog = 512  # 监听队列
chdir = '/data/s9_fastapi_deploy'  # gunicorn程序的目录，如果设置环境变量了就不必开启
timeout = 30  # 超时
work_class = 'uvicorn.workers.UvicornWorker'
workers = 5  # 进程数
threads = 4  # 指定每个进程开启的线程数
loglevel = 'error'  # 日志级别，这个日志级别指的是错误日志的级别，而访问日志的级别无法设置
access_log_format = '%(t)s %(p)s %(h)s "%(r)s" %(s)s %(L)s %(b)s %(f)s" "%(a)s"'  # 设置gunicorn访问日志格式，错误日志无法设置
accesslog = "/var/log/gunicorn_access.log"  # 访问日志文件
errorlog = "/var/log/gunicorn_error.log"  # 错误日志文件
